/**
 * 广告
 * Created by icyhy on 2017/5/22.
 */
var mongoose = require("mongoose");
var advertisementSchema = new mongoose.Schema({
  logo: String,//广告入口图片地址
  url: String,//广告链接
  created: {
    type: Date,
    default: Date.now
  },
  duration:Number, //广告投放天数，
  used: {//是否启用
    type: Boolean,
    default: true
  }
});

var advertisementModel = db.model("advertisement", advertisementSchema);
module.exports = advertisementModel;
